package designPattern.strategy;

public class PayCenter {

	private PaymentStrategy paymentStrategy;

	public PayCenter(PaymentStrategy paymentStrategy) {
		this.paymentStrategy = paymentStrategy;
	}

	public double getAmount(double amount) {
		return paymentStrategy.getPaymentAmount(amount);
	}
}
